package com.be.beadmin.device.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

@Entity
@Table(name="t_de_inspect_file")
@Getter
@Setter
public class InspectFile extends BaseEntity {
    /**
     * 关联主表ID
     */
    @Column(name = "inspectitem_id",columnDefinition = "VARCHAR(50) COMMENT '巡检项目id' not null")
    private String inspectitemId;

    @Column(name = "item_name",columnDefinition = "VARCHAR(20) COMMENT '检查项目'")
    private String itemName;

    @Column(name = "task_id", columnDefinition = "VARCHAR(20) COMMENT '巡检任务号'")
    private String taskId;

    @Column(name = "FileUrl",columnDefinition = "text COMMENT '文件链接' ")
    private String fileUrl;

    @Column(name = "Version",columnDefinition = "VARCHAR(50) COMMENT '版本号' ")
    private String version;

    @Column(name = "fileCode",columnDefinition = "VARCHAR(50) COMMENT '文件编码'")
    private String fileCode;

    @Column(name = "fileName",columnDefinition = "VARCHAR(255) COMMENT '文件名称'")
    private String fileName;

    @Column(name = "new_fileName",columnDefinition = "VARCHAR(255) COMMENT '存储在minIO中的文件名称'")
    private String newFileName;

    @Column(name = "bucketName",columnDefinition = "VARCHAR(255) COMMENT 'MinIO中的bucketName' ")
    private String bucketName;

    @Column(name = "category",columnDefinition = "VARCHAR(255) COMMENT '文件类别' ")
    private String category;

    @Column(name = "fileSize",columnDefinition = "decimal(10,0) COMMENT '文件大小' ")
    private BigDecimal fileSize;

    @Column(name = "fileExtEndDate",columnDefinition = "VARCHAR(50) COMMENT '文件后缀' ")
    private String fileExtEndDate;

    @Column(name = "memo",columnDefinition = "VARCHAR(255) COMMENT '备注' ")
    private String memo;

    @Column(name = "reserved",columnDefinition = "VARCHAR(50) COMMENT '预留' ")
    private String reserved;
}
